package com.jhx.common.utils

import android.util.Log
import com.jhx.common.app.CommonModule

/**
 * 打印日志
 *
 * @author Jack 2018-03-05 20:00
 */
 class KLog {
    companion object {
        fun e(tag: String?, msg: String?) {
            if(CommonModule.isDebug() == true) {
                Log.e(tag, msg)
            }
        }

        fun d(tag: String?, msg: String?) {
            if(CommonModule.isDebug() == true) {
                Log.d(tag, msg)
            }
        }

        fun i(tag: String?, msg: String?) {
            if(CommonModule.isDebug() == true) {
                Log.i(tag, msg)
            }
        }
    }
}

